package cn.zkcn.platform.common.utils;

/**
 * 常量
 * 
 */
public class Constant {
	/** 超级管理员ID */
	public static final int SUPER_ADMIN = 1;

	/**
	 * 菜单类型
	 * 
	 */
    public enum MenuType {
        /**
         * 目录
         */
    	CATALOG(0),
        /**
         * 菜单
         */
        MENU(1),
        /**
         * 按钮
         */
        BUTTON(2);

        private int value;

        private MenuType(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }
    

    /**
	 * 工单类型
	 * 
	 */
    public enum workOrderType {
        /**
         * 新工单
         */
    	CREATE(0),
        /**
         * 已派发
         */
        SEND(1),
        /**
         * 已接单
         */
        ACCEPT(2),
    	 /**
         * 已驳回
         */
        REJECT(3),
        /**
         * 进行中
         */
        WORKING(4),
        /**
         * 已完成
         */
        COMPLETE(5),
        /**
         * 已评价
         */
        EVALUATE(6);

        private int value;

        private workOrderType(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }
    
//	RTU
	public static String RTU_CC = "-2";//	-2	CC攻击
	public static String RTU_ERROR_FATAL = "-1";//	-1	严重错误
	public static String RTU_ERROR = "0";//	0	错误
	public static String RTU_SUCCEED = "1";//	1	成功
	public static String RTU_FROM_ERROR = "2";//	2	表单错误
	public static String RTU_LOGIN_ERROR = "3";//	3	未登录
	public static String RTU_AUTH_ERROR = "5";//	5	没有权限
	public static String RTU_DATA_ERROR = "6";//	6	数据无更新
	public static String RTU_NO_SECRETKEY_ERROR = "7";//	7	未提交密匙
	public static String RTU_SECRETKEY_ERROR = "8";//	8	密匙错误
	public static String RTU_RESUBMIT_ERROR = "9";//	9	重复提交
	public static String RTU_TIMEOUT_ERROR = "10";//	10	提交超时

// 工单状态
	public static String WORKORDER_XINGONGDAN = "新工单";
	public static String WORKORDER_JINGXINGZHONG = "进行中";
//	public static String WORKORDER_DAIQUEREN = "待确认";
	public static String WORKORDER_DAIPINGJIA = "待评价";
	public static String WORKORDER_YIWANCHENG = "已评价";
}
